<div class="panel panel-default" ng-controller="RtTaskResListCtrl">
	<div class="panel-heading">
		城际约租 / 缺车任务 <span style="color: red">（此列表显示的是没有分配车辆资源的任务，手动分配资源后请跳转至任务管理中查看已分配资源的任务）</span>
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.taskNo" class="form-control" placeholder="任务编号">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.startCity" class="form-control" placeholder="起始城市">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.terminalCity" class="form-control" placeholder="目的城市">
				</div>
			</div>
			<div class="form-group col-md-4" ng-controller="DatepickerDemoCtrl">
				<div class="col-md-11">
					<div class="input-group">
						<input type="text" class="form-control" datepicker-popup="{{format}}" is-open="opened" ng-model="timeRange.startTime" datepicker-options="dateOptions"
							close-text="Close" placeholder="任务创建开始时间" readOnly /> <span class="input-group-btn">
							<button type="button" class="btn btn-default"
								ng-click="open($event)">
								<i class="glyphicon glyphicon-calendar"></i>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group col-md-4" ng-controller="DatepickerDemoCtrl">
				<div class="col-md-11">
					<div class="input-group">
						<input type="text" class="form-control" datepicker-popup="{{format}}" is-open="opened" ng-model="timeRange.endTime" datepicker-options="dateOptions"
							close-text="Close" placeholder="任务创建结束时间" readOnly /> <span class="input-group-btn">
							<button type="button" class="btn btn-default"
								ng-click="open($event)">
								<i class="glyphicon glyphicon-calendar"></i>
							</button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:100px;">任务编号</th>
					<th style="width:100px;">任务创建时间</th>
					<th style="width:70px;">任务状态</th>
					<th style="width:70px;">乘客人数</th>
					<th style="width:70px;">起始城市</th>
					<th style="width:70px;">目的城市</th>
					<th style="width:80px;">操作</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="task in dataList">
					<td></td>
					<td>{{task.taskNo}}</td>
					<td>{{task.createTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
					<td>{{task.status | statusFilter}}</td>
					<td>{{task.total}}人</td>
					<td>{{task.startCity}}</td>
					<td>{{task.terminalCity}}</td>
					<td>
						<div class="row list-icon">
							<a href tooltip="分配资源" ng-click="write('lg',task,'update')" has-authority="RENT_RESOURCE_UPDATE">
								<i class="fa fa-pencil fa-fw m-r-xs"></i>
							</a>
							<a href tooltip="详情" ui-sref="app.rent.taskDetail({taskId: task.id,tag:1})" target="_blank">
								<i class="fa icon-info"></i>
							</a>
						</div>
					</td>
				</tr>
				<tr ng-show="dataList.length==0">
					<td colspan="10" style="text-align: center;">暂无空车任务信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>